<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePresidentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('president', function (Blueprint $table) {
            $table->increments('id');
            $table->string('loads',100);
            $table->string('old',30);
            $table->string('price',30);
            $table->string('sold_time',30);
            $table->string('make_by',100);
            $table->string('type',2)->default(0)->nullable();
            $table->timestamp('creat_at')->useCurrent();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('president');
    }
}
